package com.enterprise.projectManager.service;

import com.enterprise.projectManager.model.Log;
import com.enterprise.projectManager.model.Project;
import com.fasterxml.jackson.databind.JsonNode;

import java.time.LocalDate;
import java.util.List;

public interface LogService {
    Log create(Log log);
    Boolean delete(String id);
    Log update(Log log);
    List<Log> searchByProjectId(String id);
    Boolean releaseLog();
    Boolean isExist(String id);
    JsonNode formatLog(Log log);
    List<JsonNode> getAll();

    //日志截至时间是否为指定的日期
    Boolean isLogBeyondDateOneDay(Log log,LocalDate localDate);
}
